Node.js Driver¶
CUBRID Node.js driver is developed in 100% JavaScript and does not require specific platform compilation
Node.js is a platform built on Chrome's JavaScript runtime.
Node.js has the following specifics.
- Event-driven, server-side JavaScript.
- Good at handling lots of different kinds of I/O at the same time.
- Non-blocking I/O model that makes it lightweight and efficient.
For more details, see http://nodejs.org/.
If you want to download CUBRRID Node.js driver or find the recent information, see the following sites:
- source code main repository: https://github.com/CUBRID/node-cubrid
Installing Node.js¶
Requirements
- CUBRID 8.4.1 Patch 2 or higher
- Node.js
Installation
You can install CUBRID Node.js driver with "npm(Node Packaged Modules) install" command, but firstly you need to install node.js on http://nodejs.org/download/.
npm install node-cubrid
If you uninstall CUBRID Node.js driver, do the following command.
npm uninstall node-cubrid
CUBRID Node.js Programming¶
Examples¶
- Example using events
- Example based on asyc Node.js module
- Example plain callback style
- CUBRID Node.js Driver Demo Video (Vimeo, Youtube)